# -*- coding:UTF-8 -*-
from django.db import transaction,connection

def set_transaction(value):
    transaction.set_autocommit(value)

def get_cursor():
    cursor = connection.cursor()
    return cursor

def connection_commit():
    connection.commit()

def connection_rollback():
    connection.rollback()
    